#ifndef IDCARDREADDATANG_H
#define IDCARDREADDATANG_H

#include <QThread>
#include <QStringList>
#include <QPixmap>
#include "commondefine.h"

class IDCardReadDatang:public QThread
{
    Q_OBJECT
public:
    explicit IDCardReadDatang(QObject *parent = 0);
    ~IDCardReadDatang();
    bool initIdCard();
    bool readIdCard();

protected:
    void run();

signals:
    void sigIdcardInfo(ST_ID_INFO& stIdInfo, QPixmap pixMap);

private:
    int m_nUsbPort;
    bool m_bStop;
    unsigned int uiFPMsgLen;
    char newaddstr[70+2];    
    QStringList m_strListFork;
    ST_ID_INFO m_stID_INFO;   
};

#endif // IDCARDREADDATANG_H
